class Bird extends Animal {
    private String wing;
    {
        name = "小花";
        weight = 15;
        wing = "小";
    }
    public void information() {
        System.out.println("姓名: " + name + " 体重：" + weight + " 翅膀大小：" + wing);
    }
}

class Fish extends Animal{
    {
        name = "大黑";
        weight = 50;
    }
    public void swim(){
        System.out.println(weight + "公斤重的" + name + "在游泳");
    }
}

public class ExtendsTest {
    public static void main(String[] args) {
        Fish fish = new Fish();
        Bird bird = new Bird();
        fish.swim();
        bird.information();
    }
}
